package com.wx.javacode.exercise;

/**
 * ClassName:NotePad
 * Package :com.wx.javacode.exercise
 * Description :
 *
 * @Author : coder_mu
 * @Create : 2023/5/17 - 16:04
 */
public class NotePad extends Computer {
    private String color;

    public NotePad(String cpu, int memory, int disk, String color) {
        super(cpu, memory, disk);
        this.color = color;
    }

    public String getColor() {
        return color;
    }

    public NotePad(String cpu, int memory, int disk) {
        super(cpu, memory, disk);
    }

    public String showInfo(NotePad notePad) {
        return "cpu=" + notePad.getCpu() + " memory=" + notePad.getMemory() + " disk=" + notePad.getDisk() + " color=" + notePad.getColor();
    }
}
